import request from '@/utils/request'

// 查询礼物宝箱列表
export function listGiftCase(query) {
  return request({
    url: '/system/giftCase/list',
    method: 'get',
    params: query
  })
}

// 查询礼物宝箱详细
export function getGiftCase(id) {
  return request({
    url: '/system/giftCase/' + id,
    method: 'get'
  })
}

// 新增礼物宝箱
export function addGiftCase(data) {
  return request({
    url: '/system/giftCase',
    method: 'post',
    data: data
  })
}

// 修改礼物宝箱
export function updateGiftCase(data) {
  return request({
    url: '/system/giftCase',
    method: 'put',
    data: data
  })
}

// 删除礼物宝箱
export function delGiftCase(id) {
  return request({
    url: '/system/giftCase/' + id,
    method: 'delete'
  })
}

// 导出礼物宝箱
export function exportGiftCase(query) {
  return request({
    url: '/system/giftCase/export',
    method: 'get',
    params: query
  })
}